Add E2E shell tests with SLAS auto-tenant creation and job body support#27
Merged
Add E2E shell tests with SLAS auto-tenant creation and job body support#27
Conversation
charithaT07
approved these changes
Jan 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
These tests are e2e using a single shell script to demonstrate a real world use case (this also serves as documentation) of "easy setup" while providing a secondary E2E regression testing workflow.
As part of running this this PR fixes a bunch of big and small issues with the commands and improves the DX.
--bodyflag tojob runfor system jobs with non-standard request schemas--[no-]create-tenantflag)Changes
E2E Shell Tests
e2e_cli_test.shscript that tests: sandbox creation, code deployment, site import, search indexing, SLAS client management, and shopper API accesse2e-shell-tests.yml) that runs daily at 3 AM UTCJob Run Command
--body/-Bflag for raw JSON request body (mutually exclusive with-P)sfcc-search-index-product-full-updatethat use non-standard schemasSLAS Client Create Command
--[no-]create-tenantflag to control this behaviorTenantNotFoundExceptioninstead of 404Bug Fixes
--jsonflag is usedDocumentation
--bodyflag and system job examples--create-tenantflagTest plan
b2c job run sfcc-search-index-product-full-update --body '{"site_scope":["RefArch"]}'worksb2c slas client createauto-creates tenant on new instances--no-create-tenantskips tenant creation--jsonflag